/*
 * SSLException.cpp
 *
 *  Created on: 2009-5-17
 *      Author: thh
 */

#include "SSLError.h"

#include <openssl/err.h>

SSLError::SSLError()
{
	 this->code = ERR_get_error();
}

SSLError::SSLError(const SSLError &other)
{
	this->code = other.code;
}
SSLError::~SSLError()  throw() {
}

const char *SSLError::what() const throw()
{
	return ERR_error_string(this->code,NULL);
}

void SSLError::Clear()
{
	ERR_clear_error();
}
